<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <style>
        .shubiao{
            position: absolute;
            width: 40px;
            height: 40px;
        }
    </style>
</head>

<body>
    <div id="root">
        <img   class="shubiao" src="https://tse1-mm.cn.bing.net/th/id/OIP-C.jOXHUDjvrlCP26tpBD2XlwAAAA?pid=ImgDet&rs=1" alt="">
    </div>

    <script>
        const vm = new Vue({
            el: '#root',
            data: {
                x:'',
                y:''

            },
            methods: {
                mousemove(e){
                    x=e.pageX;
                    y=e.pageY;
                }


            },
            mounted() {
                this.mousemove();
            },

        })
    </script>
</body>

</html>